package router

import (
	"ordersystem/controller"

	"github.com/gofiber/fiber/v2"
)

func SetOrderRouter(orderRouter *fiber.Router) {
	routerForOrder := (*orderRouter).Group("/order")
	routerForOrder.Post("/queryOrderNumber", controller.OrderQueryNumberController)
	routerForOrder.Post("/queryOrder", controller.OrderQueryOrderController)
	routerForOrder.Post("/queryOrders", controller.OrderQueryOrdersController)
	routerForOrder.Post("/delete", controller.OrderDeleteOrderController)
	routerForOrder.Post("/deleteByYear", controller.OrderDeleteByYearController)
	routerForOrder.Post("/create", controller.OrderCreateController)
	routerForOrder.Post("/updateState", controller.OrderUpdateOrderSateController)
}
